package ${serviceImplPackage};

import com.paic.pafa.biz.dao.DAOException;
import ${modelPackage}.${className};

import java.util.List;
import java.util.Map;
	
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.log4j.Logger;

import ${repositoryPackage}.${className}Dao;
import ${modelPackage}.${className};
import ${servicePackage}.${className}Service;

import com.paic.pafa.biz.services.BaseServices;
import com.paic.pafa.biz.services.ServicesException;

/**
 * ${description}
 * @author liuyonggang
 * @date 2014-11-12
 */
 
@Service
public class ${className}ServiceImpl extends BaseServices implements ${className}Service {

	Logger logger=Logger.getLogger(${className}ServiceImpl.class);

	@Autowired
	private ${className}Dao ${classname}DaoImpl;
	
	@Override
	public List<${className}> queryPage${className}(Map<String, Object> param) throws ServicesException {
	
		return ${classname}DaoImpl.queryPage${className}(param);
	}

	@Override
	public int countBy${className}(Map<String, Object> param)throws ServicesException {
	
		return ${classname}DaoImpl.countBy${className}(param);
	}

	@Override
	public void save${className}(${className} entity) throws ServicesException {
	
		${classname}DaoImpl.save${className}(entity);
	}

	@Override
	public void delete${className}(${className} entity) throws ServicesException {
	
		${classname}DaoImpl.delete${className}(entity);
	}

	@Override
	public void update${className}(${className} entity) throws ServicesException {
	
		${classname}DaoImpl.update${className}(entity);
	}

	@Override
	public ${className} find${className}(${className} entity) throws ServicesException {
	
		return ${classname}DaoImpl.find${className}(entity);
	}
	
}

